package com.wjs.gulimall.gulimallproduct.feign;

import com.atguigu.common.utils.R;
import com.wjs.gulimall.gulimallproduct.fallback.SecKillFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "gulimall-seckill",fallback = SecKillFeignServiceFallBack.class)
public interface SecKillFeignService {
    @GetMapping("/sku/seckill/{skuId}")
    public R getSkuSecKillInfo(@PathVariable("skuId")Long skuId);
}
